package com.tinshow.service.index.impl;

import com.tinshow.dao.index.NavigationMapper;
import com.tinshow.model.index.Navigation;
import com.tinshow.service.index.NavigationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by libo4 on 2017-05-06.
 */
@Service
public class NavigationServiceImpl implements NavigationService{

    @Autowired
    NavigationMapper navigationMapper;

    @Override
    public List<Navigation>getAll() {
        List<Navigation> list = new ArrayList<Navigation>();
        list.add(navigationMapper.selectByPrimaryKey(1));
        return list;
    }
}
